<html>
<head></head>
<body>
<button id="btn">loadJS</button>
</body>
</html>
<script type="text/javascript" src="Module.js"></script>
<script type="text/javascript">

var js = ["js/1.js","js/2.js","js/3.js"];
/*
Module.load(js,function(){
	var Man = Module.import("Man");
	var Children = Module.import("Children");
	Man.show();
	Children.show();
}); 
//异步载入js,而且按照顺序加载
*/

Module.load(js); /*按顺序异步加载*/
Module.require(function(){
	var app = Module.import("app");
	app.show();
});

/*同步动态加载0.js*/
btn.onclick = function(){
	var object = Module.import("js/0.js","myModel");
	/*加载0.js文件,0.js里定义了一个myModel;把myModel赋值给object*/
	object.show();
}

</script>
